#include <stdlib.h>
#include <math.h>
#include "aimage.h"
#include "aimage_utils.h"
#include "aimage_ppm.h"

int main( int argc, const char *argv[] )
{
	AIMAGE i0;
	AIMAGE i1;
	AIMAGE final;
	AIMAGE alpha;
	int width, height;

	AIMAGE_PPM_UTILS::load(i0, argv[ 1 ] );
	AIMAGE_PPM_UTILS::load(i1, argv[ 2 ] );
	float percent = atof( argv[ 3 ]);
	AIU::blend( i0, i1, percent );
	AIMAGE_PPM_UTILS::save( i0, "stdout", true );
}

